import gradio as gr


def say_hi(name):
    return f'Hello {name}!'

def say_hello(name):
    return f'Hello {name}!'

hi = gr.Interface(
    fn=say_hi,
    inputs='text',
    outputs='text',
)

hello = gr.Interface(
    fn=say_hello,
    inputs='text',
    outputs='text',
)

demo = gr.TabbedInterface(
    interface_list=[hi,hello],
    tab_names=['hi', 'hello'],
)

if __name__ == '__main__':
    demo.launch()
